<?php
namespace app\entity;

use yii\db\ActiveRecord;

class GoodsEntity extends ActiveRecord
{

   /* private $id;
    private $goods_name;
    private $specs;
    private $pic;
    private $stock_num;
    private $desc_txt;
    private $need_points;
    private $create_time;
    private $update_time;
    private $del_flag;
    private $type;
    private $give_points;
    private $is_exchange;
    private $exchange_num;
       private $barcode;

    */


    /**
     * @return mixed
     */
    public function getBarcode()
    {
        return $this->barcode;
    }

    /**
     * @param mixed $barcode
     */
    public function setBarcode($barcode)
    {
        $this->barcode = $barcode;
    }




    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @param mixed $id
     */
    public function setId($id)
    {
        $this->id = $id;
    }

    /**
     * @return mixed
     */
    public function getGoodsName()
    {
        return $this->goods_name;
    }

    /**
     * @param mixed $goods_name
     */
    public function setGoodsName($goods_name)
    {
        $this->goods_name = $goods_name;
    }

    /**
     * @return mixed
     */
    public function getSpecs()
    {
        return $this->specs;
    }

    /**
     * @param mixed $specs
     */
    public function setSpecs($specs)
    {
        $this->specs = $specs;
    }

    /**
     * @return mixed
     */
    public function getPic()
    {
        return $this->pic;
    }

    /**
     * @param mixed $pic
     */
    public function setPic($pic)
    {
        $this->pic = $pic;
    }

    /**
     * @return mixed
     */
    public function getStockNum()
    {
        return $this->stock_num;
    }

    /**
     * @param mixed $stock_num
     */
    public function setStockNum($stock_num)
    {
        $this->stock_num = $stock_num;
    }

    /**
     * @return mixed
     */
    public function getDescTxt()
    {
        return $this->desc_txt;
    }

    /**
     * @param mixed $desc_txt
     */
    public function setDescTxt($desc_txt)
    {
        $this->desc_txt = $desc_txt;
    }

    /**
     * @return mixed
     */
    public function getNeedPoints()
    {
        return $this->need_points;
    }

    /**
     * @param mixed $need_points
     */
    public function setNeedPoints($need_points)
    {
        $this->need_points = $need_points;
    }

    /**
     * @return mixed
     */
    public function getCreateTime()
    {
        return $this->create_time;
    }

    /**
     * @param mixed $create_time
     */
    public function setCreateTime($create_time)
    {
        $this->create_time = $create_time;
    }

    /**
     * @return mixed
     */
    public function getUpdateTime()
    {
        return $this->update_time;
    }

    /**
     * @param mixed $update_time
     */
    public function setUpdateTime($update_time)
    {
        $this->update_time = $update_time;
    }

    /**
     * @return mixed
     */
    public function getDelFlag()
    {
        return $this->del_flag;
    }

    /**
     * @param mixed $del_flag
     */
    public function setDelFlag($del_flag)
    {
        $this->del_flag = $del_flag;
    }

    /**
     * @return mixed
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * @param mixed $type
     */
    public function setType($type)
    {
        $this->type = $type;
    }

    /**
     * @return mixed
     */
    public function getGivePoints()
    {
        return $this->give_points;
    }

    /**
     * @param mixed $give_points
     */
    public function setGivePoints($give_points)
    {
        $this->give_points = $give_points;
    }

    /**
     * @return mixed
     */
    public function getIsExchange()
    {
        return $this->is_exchange;
    }

    /**
     * @param mixed $is_exchange
     */
    public function setIsExchange($is_exchange)
    {
        $this->is_exchange = $is_exchange;
    }

    /**
     * @return mixed
     */
    public function getExchangeNum()
    {
        return $this->exchange_num;
    }

    /**
     * @param mixed $exchange_num
     */
    public function setExchangeNum($exchange_num)
    {
        $this->exchange_num = $exchange_num;
    }










    public static function tableName()
    {
       return "shop_goods";
    }



}